PageSourceSearch

https://cncrg.org/widget/index.mjs

js cncrg.org collected 2026-09-24 13:00:15 UTC 99,603 bytes, 1 lines download raw bytes

1function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function o(){return Object.create(null)}function r(t){t.forEach(n)}function i(t){return"function"==typeof t}function s(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let a;function l(t,e){return a||(a=document.createElement("a")),a.href=e,t===a.href}function c(e,...n){if(null==e)return t;const o=e.subscribe(...n);return o.unsubscribe?()=>o.unsubscribe():o}function u(t,e,n){t.$$.on_destroy.push(c(e,n))}function h(t,e,n){return t.set(n),e}const f="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function p(t,e){t.appendChild(e)}function d(t,e,n){const o=function(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;if(e&&e.host)return e;return t.ownerDocument}(t);if(!o.getElementById(e)){const t=b("style");t.id=e,t.textContent=n,function(t,e){p(t.head||t,e),e.sheet}(o,t)}}function m(t,e,n){t.insertBefore(e,n||null)}function g(t){t.parentNode&&t.parentNode.removeChild(t)}function b(t){return document.createElement(t)}function v(t){return document.createTextNode(t)}function y(){return v(" ")}function E(){return v("")}function w(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function x(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function T(t,e){e=""+e,t.data!==e&&(t.data=e)}function H(t,e,n,o){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")}function B(t,e,n){t.classList[n?"add":"remove"](e)}class A{constructor(t=!1){this.is_svg=!1,this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,n=null){var o;this.e||(this.is_svg?this.e=(o=e.nodeName,document.createElementNS("http://www.w3.org/2000/svg",o)):this.e=b(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)m(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(g)}}let _;function I(t){_=t}function L(){if(!_)throw new Error("Function called outside component initialization");return _}function C(t){L().$$.on_destroy.push(t)}function S(){const t=L();return(e,n,{cancelable:o=!1}={})=>{const r=t.$$.callbacks[e];if(r){const i=function(t,e,{bubbles:n=!1,cancelable:o=!1}={}){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,o,e),r}(e,n,{cancelable:o});return r.slice().forEach(e=>{e.call(t,i)}),!i.defaultPrevented}return!0}}const O=[],P=[];let k=[];const M=[],N=Promise.resolve();let R=!1;function $(t){k.push(t)}const U=new Set;let G=0;function D(){if(0!==G)return;const t=_;do{try{for(;G<O.length;){const t=O[G];G++,I(t),z(t.$$)}}catch(t){throw O.length=0,G=0,t}for(I(null),O.length=0,G=0;P.length;)P.pop()();for(let t=0;t<k.length;t+=1){const e=k[t];U.has(e)||(U.add(e),e())}k.length=0}while(O.length);for(;M.length;)M.pop()();R=!1,U.clear(),I(t)}function z(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach($)}}const j=new Set;let q;function F(){q={r:0,c:[],p:q}}function V(){q.r||r(q.c),q=q.p}function X(t,e){t&&t.i&&(j.delete(t),t.i(e))}function W(t,e,n,o){if(t&&t.o){if(j.has(t))return;j.add(t),q.c.push(()=>{j.delete(t),o&&(n&&t.d(1),o())}),t.o(e)}else o&&o()}function K(t,e){t.d(1),e.delete(t.key)}function Y(t){t&&t.c()}function Z(t,e,o,s){const{fragment:a,after_update:l}=t.$$;a&&a.m(e,o),s||$(()=>{const e=t.$$.on_mount.map(n).filter(i);t.$$.on_destroy?t.$$.on_destroy.push(...e):r(e),t.$$.on_mount=[]}),l.forEach($)}function J(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];k.forEach(o=>-1===t.indexOf(o)?e.push(o):n.push(o)),n.forEach(t=>t()),k=e}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Q(t,e){-1===t.$$.dirty[0]&&(O.push(t),R||(R=!0,N.then(D)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function tt(e,n,i,s,a,l,c,u=[-1]){const h=_;I(e);const f=e.$$={fragment:null,ctx:[],props:l,update:t,not_equal:a,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(h?h.$$.context:[])),callbacks:o(),dirty:u,skip_bound:!1,root:n.target||h.$$.root};c&&c(f.root);let p=!1;if(f.ctx=i?i(e,n.props||{},(t,n,...o)=>{const r=o.length?o[0]:n;return f.ctx&&a(f.ctx[t],f.ctx[t]=r)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](r),p&&Q(e,t)),n}
1):[],f.update(),p=!0,r(f.before_update),f.fragment=!!s&&s(f.ctx),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);f.fragment&&f.fragment.l(t),t.forEach(g)}else f.fragment&&f.fragment.c();n.intro&&X(e.$$.fragment),Z(e,n.target,n.anchor,n.customElement),D()}I(h)}class et{$destroy(){J(this,1),this.$destroy=t}$on(e,n){if(!i(n))return t;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const t=o.indexOf(n);-1!==t&&o.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const nt=[];function ot(e,n=t){let o;const r=new Set;function i(t){if(s(e,t)&&(e=t,o)){const t=!nt.length;for(const t of r)t[1](),nt.push(t,e);if(t){for(let t=0;t<nt.length;t+=2)nt[t][0](nt[t+1]);nt.length=0}}}return{set:i,update:function(t){i(t(e))},subscribe:function(s,a=t){const l=[s,a];return r.add(l),1===r.size&&(o=n(i)||t),s(e),()=>{r.delete(l),0===r.size&&o&&(o(),o=null)}}}}function rt(e,n,o){const s=!Array.isArray(e),a=s?[e]:e,l=n.length<2;return{subscribe:ot(o,e=>{let o=!1;const u=[];let h=0,f=t;const p=()=>{if(h)return;f();const o=n(s?u[0]:u,e);l?e(o):f=i(o)?o:t},d=a.map((t,e)=>c(t,t=>{u[e]=t,h&=~(1<<e),o&&p()},()=>{h|=1<<e}));return o=!0,p(),function(){r(d),f(),o=!1}}).subscribe}}var it=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===st}(t)}(t)};var st="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function at(t,e){return!1!==e.clone&&e.isMergeableObject(t)?ft((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function lt(t,e,n){return t.concat(e).map((function(t){return at(t,n)}))}function ct(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function ut(t,e){try{return e in t}catch(t){return!1}}function ht(t,e,n){var o={};return n.isMergeableObject(t)&&ct(t).forEach((function(e){o[e]=at(t[e],n)})),ct(e).forEach((function(r){(function(t,e){return ut(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(ut(t,r)&&n.isMergeableObject(e[r])?o[r]=function(t,e){if(!e.customMerge)return ft;var n=e.customMerge(t);return"function"==typeof n?n:ft}(r,n)(t[r],e[r],n):o[r]=at(e[r],n))})),o}function ft(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||lt,n.isMergeableObject=n.isMergeableObject||it,n.cloneUnlessOtherwiseSpecified=at;var o=Array.isArray(e);return o===Array.isArray(t)?o?n.arrayMerge(t,e,n):ht(t,e,n):at(e,n)}ft.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return ft(t,n,e)}),{})};var pt=ft,dt=function(t,e){return(dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function mt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}dt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var gt=function(){return(gt=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function bt(t,e,n){if(n||2===arguments.length)for(var o,r=0,i=e.length;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;function vt(t,e){var n=e&&e.cache?e.cache:It,o=e&&e.serializer?e.serializer:Tt;return(e&&e.strategy?e.strategy:xt)(t,{cache:n,serializer:o})}function yt(t,e,n,o){var r,i=null==(r=o)||"number"==typeof r||"boolean"==typeof r?o:n(o),s=e.get(i);return void 0===s&&(s=t.call(this,o),e.set(i,s)),s}function Et(t,e,n){var o=Array.prototype.slice.call(arguments,3),r=n(o),i=e.get(r);return void 0===i&&(i=t.apply(this,o),e.set(r,i)),i}function wt(t,e,n,o,r){return n.bind(e,t,o,r)}function xt(t,e){return wt(t,this,1===t.length?yt:Et,e.cache.create(),e.serializer)}var Tt=function(){return JSON.stringify(arguments)};function Ht(){this.cache=Object.create(null)}Ht.prototype.get=function(t){return this.cache[t]},Ht.prototype.set=function(t,e){this.cache[t]=e};var Bt,At,_t,It={create:function(){return new Ht}},Lt={variadic:function(t,e){return wt(t,this,Et,e.cache.create(),e.serializer)},monadic:function(t,e){return wt(t,this,yt,e.cache.create(),e.serializer)}};function Ct(t){return t.type===At.literal}function St(t){return t.type===At.argument}function Ot(t){return t.type===At.number}function Pt(t){return t.type===At.date}function kt(t){return t.type===At.time}function Mt(t){return t.type===At.select}function Nt(t){return t.type===At.plural}function Rt(t){return t.type===At.pound}function $t(t){return t.type===At.tag}function Ut(t){return!(!t||"object"!=typeof t||t.type!==_t.number)}function Gt(t){return!(!t||"object"!=typeof t||t.type!==_t.dateTime)}!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_
1NUMBER_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"}(Bt||(Bt={})),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"}(At||(At={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(_t||(_t={}));var Dt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,zt=/(?:[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 jt(t){var e={};return t.replace(zt,(function(t){var n=t.length;switch(t[0]){case"G":e.era=4===n?"long":5===n?"narrow":"short";break;case"y":e.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][n-1];break;case"s":e.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}var qt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ft=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Vt=/^(@+)?(\+|#+)?[rs]?$/g,Xt=/(\*)(0+)|(#+)(0+)|(0+)/g,Wt=/^(0+)$/;function Kt(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(Vt,(function(t,n,o){return"string"!=typeof o?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):"+"===o?e.minimumSignificantDigits=n.length:"#"===n[0]?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+("string"==typeof o?o.length:0)),""})),e}function Yt(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 Zt(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!Wt.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Jt(t){var e=Yt(t);return e||{}}function Qt(t){for(var e={},n=0,o=t;n<o.length;n++){var r=o[n];switch(r.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=r.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;
1case"scientific":e=gt(gt(gt({},e),{notation:"scientific"}),r.options.reduce((function(t,e){return gt(gt({},t),Jt(e))}),{}));continue;case"engineering":e=gt(gt(gt({},e),{notation:"engineering"}),r.options.reduce((function(t,e){return gt(gt({},t),Jt(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(Xt,(function(t,n,o,r,i,s){if(n)e.minimumIntegerDigits=o.length;else{if(r&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Wt.test(r.stem))e.minimumIntegerDigits=r.stem.length;else if(Ft.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Ft,(function(t,n,o,r,i,s){return"*"===o?e.minimumFractionDigits=n.length:r&&"#"===r[0]?e.maximumFractionDigits=r.length:i&&s?(e.minimumFractionDigits=i.length,e.maximumFractionDigits=i.length+s.length):(e.minimumFractionDigits=n.length,e.maximumFractionDigits=n.length),""}));var i=r.options[0];"w"===i?e=gt(gt({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=gt(gt({},e),Kt(i)))}else if(Vt.test(r.stem))e=gt(gt({},e),Kt(r.stem));else{var s=Yt(r.stem);s&&(e=gt(gt({},e),s));var a=Zt(r.stem);a&&(e=gt(gt({},e),a))}}return e}var te,ee={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
1:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ne(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,o=t.language;return"root"!==o&&(n=t.maximize().region),(ee[n||""]||ee[o||""]||ee["".concat(o,"-001")]||ee["001"])[0]}var oe=new RegExp("^".concat(Dt.source,"*")),re=new RegExp("".concat(Dt.source,"*$"));function ie(t,e){return{start:t,end:e}}var se=!!String.prototype.startsWith&&"_a".startsWith("a",1),ae=!!String.fromCodePoint,le=!!Object.fromEntries,ce=!!String.prototype.codePointAt,ue=!!String.prototype.trimStart,he=!!String.prototype.trimEnd,fe=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},pe=!0;try{pe="a"===(null===(te=we("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===te?void 0:te[0])}catch(t){pe=!1}var de,me=se?function(t,e,n){return t.startsWith(e,n)}:function(t,e,n){return t.slice(n,n+e.length)===e},ge=ae?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n,o="",r=t.length,i=0;r>i;){if((n=t[i++])>1114111)throw RangeError(n+" is not a valid code point");o+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return o},be=le?Object.fromEntries:function(t){for(var e={},n=0,o=t;n<o.length;n++){var r=o[n],i=r[0],s=r[1];e[i]=s}return e},ve=ce?function(t,e){return t.codePointAt(e)}:function(t,e){var n=t.length;if(!(e<0||e>=n)){var o,r=t.charCodeAt(e);return r<55296||r>56319||e+1===n||(o=t.charCodeAt(e+1))<56320||o>
157343?r:o-56320+(r-55296<<10)+65536}},ye=ue?function(t){return t.trimStart()}:function(t){return t.replace(oe,"")},Ee=he?function(t){return t.trimEnd()}:function(t){return t.replace(re,"")};function we(t,e){return new RegExp(t,e)}if(pe){var xe=we("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");de=function(t,e){var n;return xe.lastIndex=e,null!==(n=xe.exec(t)[1])&&void 0!==n?n:""}}else de=function(t,e){for(var n=[];;){var o=ve(t,e);if(void 0===o||Ae(o)||_e(o))break;n.push(o),e+=o>=65536?2:1}return ge.apply(void 0,n)};var Te,He=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,n){for(var o=[];!this.isEOF();){var r=this.char();if(123===r){if((i=this.parseArgument(t,n)).err)return i;o.push(i.val)}else{if(125===r&&t>0)break;if(35!==r||"plural"!==e&&"selectordinal"!==e){if(60===r&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(Bt.UNMATCHED_CLOSING_TAG,ie(this.clonePosition(),this.clonePosition()))}if(60===r&&!this.ignoreTag&&Be(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i;o.push(i.val)}else{var i;if((i=this.parseLiteral(t,e)).err)return i;o.push(i.val)}}else{var s=this.clonePosition();this.bump(),o.push({type:At.pound,location:ie(s,this.clonePosition())})}}}return{val:o,err:null}},t.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:At.literal,value:"<".concat(o,"/>"),location:ie(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var r=this.parseMessage(t+1,e,!0);if(r.err)return r;var i=r.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Be(this.char()))return this.error(Bt.INVALID_TAG,ie(s,this.clonePosition()));var a=this.clonePosition();return o!==this.parseTagName()?this.error(Bt.UNMATCHED_CLOSING_TAG,ie(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:At.tag,value:o,children:i,location:ie(n,this.clonePosition())},err:null}:this.error(Bt.INVALID_TAG,ie(s,this.clonePosition())))}return this.error(Bt.UNCLOSED_TAG,ie(n,this.clonePosition()))}return this.error(Bt.INVALID_TAG,ie(n,this.clonePosition()))},t.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||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);)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(t,e){for(var n=this.clonePosition(),o="";;){var r=this.tryParseQuote(e);if(r)o+=r;else{var i=this.tryParseUnquoted(t,e);if(i)o+=i;else{var s=this.tryParseLeftAngleBracket();if(!s)break;o+=s}}}var a=ie(n,this.clonePosition());return{val:{type:At.literal,value:o,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Be(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(n);this.bump()}return ge.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===e||"selectordinal"===e)||125===n&&t>0?null:(this.bump(),ge(n))},t.prototype.parseArgument=function(t,e){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Bt.EXPECT_ARGUMENT_CLOSING_BRACE,ie(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Bt.EMPTY_ARGUMENT,ie(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(Bt.MALFORMED_ARGUMENT,ie(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Bt.EXPECT_ARGUMENT_CLOSING_BRACE,ie(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:At.argument,value:o,location:ie(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Bt.EXPECT_ARGUMENT_CLOSING_BRACE,ie(n,this.clonePosition())):this.parseArgumentOptions(t,e,o,n);default:return this.error(Bt.MALFORMED_ARGUMENT,ie(n,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),n=de(this.message,e),o=e+n.length;return this.bumpTo(o),{value:n,location:ie(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,n,o){var r,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(Bt.EXPECT_ARGUMENT_TYPE,ie(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(p=Ee(b.val)).length)return this.error(Bt.EXPECT_ARGUMENT_STYLE,ie(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:ie(c,this.clonePosition())}}if((v=this.tryParseArgumentClose(o)).err)return v;var u=ie(o,this.clonePosition());if(l&&me(null==l?void 0:l.style,"::",0)){var h=ye(l.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?b:{val:{type:At.number,value:n,location:u,style:b.val},err:null};if(0===h.length)return this.error(Bt.EXPECT_DATE_TIME_SKELETON,u);var f=h;this.locale&&(f=function(t,e){for(var n="",o=0;o<t.length;o++){var r=t.charAt(o);if("j"===r){for(var i=0;o+1<t.length&&t.charAt(o+1)===r;)i++,o++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=ne(e);for("H"!=l&&"k"!=l||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===r?"H":r}return n}(h,this.locale));var p={type:_t.dateTime,pattern:f,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?jt(f):{}};return{val:{type:"date"===s?At.date:At.time,value:n,location:u,style:p},err:null}}return{val:{type:"number"===s?At.number:"date"===s?At.date:At.time,value:n,location:u,style:null!==(r=null==l?void 0:l.style)&&void 0!==r?r:null},err:null};
1case"plural":case"selectordinal":case"select":var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Bt.EXPECT_SELECT_ARGUMENT_OPTIONS,ie(d,gt({},d)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(Bt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ie(this.clonePosition(),this.clonePosition()));var b;if(this.bumpSpace(),(b=this.tryParseDecimalInteger(Bt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Bt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return b;this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=b.val}var v,y=this.tryParsePluralOrSelectOptions(t,s,e,m);if(y.err)return y;if((v=this.tryParseArgumentClose(o)).err)return v;var E=ie(o,this.clonePosition());return"select"===s?{val:{type:At.select,value:n,options:be(y.val),location:E},err:null}:{val:{type:At.plural,value:n,options:be(y.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:E},err:null};default:return this.error(Bt.INVALID_ARGUMENT_TYPE,ie(i,a))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(Bt.EXPECT_ARGUMENT_CLOSING_BRACE,ie(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Bt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ie(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],n=0,o=t.split(qt).filter((function(t){return t.length>0}));n<o.length;n++){var r=o[n].split("/");if(0===r.length)throw new Error("Invalid number skeleton");for(var i=r[0],s=r.slice(1),a=0,l=s;a<l.length;a++){if(0===l[a].length)throw new Error("Invalid number skeleton")}e.push({stem:i,options:s})}return e}(t)}catch(t){return this.error(Bt.INVALID_NUMBER_SKELETON,e)}return{val:{type:_t.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?Qt(n):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,n,o){for(var r,i=!1,s=[],a=new Set,l=o.value,c=o.location;;){if(0===l.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(Bt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Bt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=ie(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(a.has(l))return this.error("select"===e?Bt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Bt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?Bt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Bt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ie(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,n);if(p.err)return p;var d=this.tryParseArgumentClose(f);if(d.err)return d;s.push([l,{value:p.val,location:ie(f,this.clonePosition())}]),a.add(l),this.bumpSpace(),l=(r=this.parseIdentifierIfPossible()).value,c=r.location}return 0===s.length?this.error("select"===e?Bt.EXPECT_SELECT_ARGUMENT_SELECTOR:Bt.EXPECT_PLURAL_ARGUMENT_SELECTOR,ie(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Bt.MISSING_OTHER_CLAUSE,ie(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var r=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;r=!0,i=10*i+(s-48),this.bump()}var a=ie(o,this.clonePosition());return r?fe(i*=n)?{val:i,err:null}:this.error(e,a):this.error(t,a)},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 t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=ve(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(me(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),n=this.message.indexOf(t,e);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;
1if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ae(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),n=this.message.charCodeAt(e+(t>=65536?2:1));return null!=n?n:null},t}();function Be(t){return t>=97&&t<=122||t>=65&&t<=90}function Ae(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function _e(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||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||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||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||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||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||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||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||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||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||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function Ie(t,e){void 0===e&&(e={}),e=gt({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new He(t,e).parse();if(n.err){var o=SyntaxError(Bt[n.err.kind]);throw o.location=n.err.location,o.originalMessage=n.err.message,o}return(null==e?void 0:e.captureLocation)||function t(e){e.forEach((function(e){if(delete e.location,Mt(e)||Nt(e))for(var n in e.options)delete e.options[n].location,t(e.options[n].value);else Ot(e)&&Ut(e.style)||(Pt(e)||kt(e))&&Gt(e.style)?delete e.style.location:$t(e)&&t(e.children)}))}(n.val),n.val}!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(Te||(Te={}));var Le,Ce=function(t){function e(e,n,o){var r=t.call(this,e)||this;return r.code=n,r.originalMessage=o,r}return mt(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),Se=function(t){function e(e,n,o,r){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Te.INVALID_VALUE,r)||this}return mt(e,t),e}(Ce),Oe=function(t){function e(e,n,o){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(n),Te.INVALID_VALUE,o)||this}return mt(e,t),e}(Ce),Pe=function(t){function e(e,n){return t.call(this,'The intl str
1ing context variable "'.concat(e,'" was not provided to the string "').concat(n,'"'),Te.MISSING_VALUE,n)||this}return mt(e,t),e}(Ce);function ke(t){return"function"==typeof t}function Me(t,e,n,o,r,i,s){if(1===t.length&&Ct(t[0]))return[{type:Le.literal,value:t[0].value}];for(var a=[],l=0,c=t;l<c.length;l++){var u=c[l];if(Ct(u))a.push({type:Le.literal,value:u.value});else if(Rt(u))"number"==typeof i&&a.push({type:Le.literal,value:n.getNumberFormat(e).format(i)});else{var h=u.value;if(!r||!(h in r))throw new Pe(h,s);var f=r[h];if(St(u))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?Le.literal:Le.object,value:f});else if(Pt(u)){var p="string"==typeof u.style?o.date[u.style]:Gt(u.style)?u.style.parsedOptions:void 0;a.push({type:Le.literal,value:n.getDateTimeFormat(e,p).format(f)})}else if(kt(u)){p="string"==typeof u.style?o.time[u.style]:Gt(u.style)?u.style.parsedOptions:o.time.medium;a.push({type:Le.literal,value:n.getDateTimeFormat(e,p).format(f)})}else if(Ot(u)){(p="string"==typeof u.style?o.number[u.style]:Ut(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:Le.literal,value:n.getNumberFormat(e,p).format(f)})}else{if($t(u)){var d=u.children,m=u.value,g=r[m];if(!ke(g))throw new Oe(m,"function",s);var b=g(Me(d,e,n,o,r,i).map((function(t){return t.value})));Array.isArray(b)||(b=[b]),a.push.apply(a,b.map((function(t){return{type:"string"==typeof t?Le.literal:Le.object,value:t}})))}if(Mt(u)){if(!(v=u.options[f]||u.options.other))throw new Se(u.value,f,Object.keys(u.options),s);a.push.apply(a,Me(v.value,e,n,o,r))}else if(Nt(u)){var v;if(!(v=u.options["=".concat(f)])){if(!Intl.PluralRules)throw new Ce('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Te.MISSING_INTL_API,s);var y=n.getPluralRules(e,{type:u.pluralType}).select(f-(u.offset||0));v=u.options[y]||u.options.other}if(!v)throw new Se(u.value,f,Object.keys(u.options),s);a.push.apply(a,Me(v.value,e,n,o,r,f-(u.offset||0)))}else;}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var n=t[t.length-1];return n&&n.type===Le.literal&&e.type===Le.literal?n.value+=e.value:t.push(e),t}),[])}(a)}function Ne(t,e){return e?Object.keys(t).reduce((function(n,o){var r,i;return n[o]=(r=t[o],(i=e[o])?gt(gt(gt({},r||{}),i||{}),Object.keys(r).reduce((function(t,e){return t[e]=gt(gt({},r[e]),i[e]||{}),t}),{})):r),n}),gt({},t)):t}function Re(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(Le||(Le={}));var $e=function(){function t(e,n,o,r){void 0===n&&(n=t.defaultLocale);var i,s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);if(1===e.length)return e[0].value;var n=e.reduce((function(t,e){return t.length&&e.type===Le.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(t){return Me(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=s.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=r||{},l=(a.formatters,function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n}(a,["formatters"]));this.ast=t.__parse(e,gt(gt({},l),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ne(t.formats,o),this.formatters=r&&r.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:vt((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,bt([void 0],e,!1)))}),{cache:Re(i.number),strategy:Lt.variadic}),getDateTimeFormat:vt((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,bt([void 0],e,!1)))}),{cache:Re(i.dateTime),strategy:Lt.variadic}),getPluralRules:vt((function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,bt([void 0],e,!1)))}),{cache:Re(i.pluralRules),strategy:Lt.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale}
1,enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){if(void 0!==Intl.Locale){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])}},t.__parse=Ie,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}();const Ue={},Ge=(t,e,n)=>n?(e in Ue||(Ue[e]={}),t in Ue[e]||(Ue[e][t]=n),n):n,De=(t,e)=>{if(null==e)return;if(e in Ue&&t in Ue[e])return Ue[e][t];const n=vn(e);for(let o=0;o<n.length;o++){const r=Fe(n[o],t);if(r)return Ge(t,e,r)}};let ze;const je=ot({});function qe(t){return t in ze}function Fe(t,e){if(!qe(t))return null;return function(t,e){if(null==e)return;if(e in t)return t[e];const n=e.split(".");let o=t;for(let t=0;t<n.length;t++)if("object"==typeof o){if(t>0){const e=n.slice(t,n.length).join(".");if(e in o){o=o[e];break}}o=o[n[t]]}else o=void 0;return o}(function(t){return ze[t]||null}(t),e)}function Ve(t,...e){delete Ue[t],je.update(n=>(n[t]=pt.all([n[t]||{},...e]),n))}rt([je],([t])=>Object.keys(t));je.subscribe(t=>ze=t);const Xe={};function We(t){return Xe[t]}function Ke(t){return null!=t&&vn(t).some(t=>{var e;return null==(e=We(t))?void 0:e.size})}function Ye(t,e){return Promise.all(e.map(e=>(function(t,e){Xe[t].delete(e),0===Xe[t].size&&delete Xe[t]}(t,e),e().then(t=>t.default||t)))).then(e=>Ve(t,...e))}const Ze={};
1function Je(t){if(!Ke(t))return t in Ze?Ze[t]:Promise.resolve();const e=function(t){return vn(t).map(t=>{const e=We(t);return[t,e?[...e]:[]]}).filter(([,t])=>t.length>0)}(t);return Ze[t]=Promise.all(e.map(([t,e])=>Ye(t,e))).then(()=>{if(Ke(t))return Je(t);delete Ze[t]}),Ze[t]}var Qe=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable;function nn({locale:t,id:e}){console.warn(`[svelte-i18n] The message "${e}" was not found in "${vn(t).join('", "')}".${Ke(yn())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}const on={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function rn(){return on}function sn(t){const e=t,{formats:n}=e,o=((t,e)=>{var n={};for(var o in t)tn.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&Qe)for(var o of Qe(t))e.indexOf(o)<0&&en.call(t,o)&&(n[o]=t[o]);return n})(e,["formats"]);let r=t.fallbackLocale;if(t.initialLocale)try{$e.resolveLocale(t.initialLocale)&&(r=t.initialLocale)}catch(e){console.warn(`[svelte-i18n] The initial locale "${t.initialLocale}" is not a valid locale.`)}return o.warnOnMissingMessages&&(delete o.warnOnMissingMessages,null==o.handleMissingMessage?o.handleMissingMessage=nn:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(on,o,{initialLocale:r}),n&&("number"in n&&Object.assign(on.formats.number,n.number),"date"in n&&Object.assign(on.formats.date,n.date),"time"in n&&Object.assign(on.formats.time,n.time)),En.set(r)}const an=ot(!1);var ln=Object.defineProperty,cn=Object.defineProperties,un=Object.getOwnPropertyDescriptors,hn=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,dn=(t,e,n)=>e in t?ln(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;let mn;const gn=ot(null);function bn(t){return t.split("-").map((t,e,n)=>n.slice(0,e+1).join("-")).reverse()}function vn(t,e=rn().fallbackLocale){const n=bn(t);return e?[...new Set([...n,...bn(e)])]:n}function yn(){return null!=mn?mn:void 0}gn.subscribe(t=>{mn=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)});const En=((t,e)=>cn(t,un(e)))(((t,e)=>{for(var n in e||(e={}))fn.call(e,n)&&dn(t,n,e[n]);if(hn)for(var n of hn(e))pn.call(e,n)&&dn(t,n,e[n]);return t})({},gn),{set:t=>{if(t&&function(t){if(null==t)return;const e=vn(t);for(let t=0;t<e.length;t++){const n=e[t];if(qe(n))return n}}(t)&&Ke(t)){const{loadingDelay:e}=rn();let n;return"undefined"!=typeof window&&null!=yn()&&e?n=window.setTimeout(()=>an.set(!0),e):an.set(!0),Je(t).then(()=>{gn.set(t)}).finally(()=>{clearTimeout(n),an.set(!1)})}return gn.set(t)}}),wn=t=>{const e=Object.create(null);return n=>{const o=JSON.stringify(n);return o in e?e[o]:e[o]=t(n)}};var xn=Object.defineProperty,Tn=Object.getOwnPropertySymbols,Hn=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,An=(t,e,n)=>e in t?xn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_n=(t,e)=>{for(var n in e||(e={}))Hn.call(e,n)&&An(t,n,e[n]);if(Tn)for(var n of Tn(e))Bn.call(e,n)&&An(t,n,e[n]);return t},In=(t,e)=>{var n={};for(var o in t)Hn.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&Tn)for(var o of Tn(t))e.indexOf(o)<0&&Bn.call(t,o)&&(n[o]=t[o
1]);return n};const Ln=(t,e)=>{const{formats:n}=rn();if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Cn=wn(t=>{var e=t,{locale:n,format:o}=e,r=In(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return o&&(r=Ln("number",o)),new Intl.NumberFormat(n,r)}),Sn=wn(t=>{var e=t,{locale:n,format:o}=e,r=In(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return o?r=Ln("date",o):0===Object.keys(r).length&&(r=Ln("date","short")),new Intl.DateTimeFormat(n,r)}),On=wn(t=>{var e=t,{locale:n,format:o}=e,r=In(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return o?r=Ln("time",o):0===Object.keys(r).length&&(r=Ln("time","short")),new Intl.DateTimeFormat(n,r)}),Pn=wn((t,e=yn())=>new $e(t,e,rn().formats,{ignoreTag:rn().ignoreTag})),kn=(t,e={})=>{var n,o,r,i;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=yn(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=De(t,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(i=null!=(r=null==(o=(n=rn()).handleMissingMessage)?void 0:o.call(n,{locale:l,id:t,defaultValue:c}))?r:c)?i:t;if(!a)return u;let h=u;try{h=Pn(u,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},Mn=(t,e)=>((t={})=>{var e=t,{locale:n=yn()}=e,o=In(e,["locale"]);return On(_n({locale:n},o))})(e).format(t),Nn=(t,e)=>((t={})=>{var e=t,{locale:n=yn()}=e,o=In(e,["locale"]);return Sn(_n({locale:n},o))})(e).format(t),Rn=(t,e)=>((t={})=>{var e=t,{locale:n=yn()}=e,o=In(e,["locale"]);return Cn(_n({locale:n},o))})(e).format(t),$n=(t,e=yn())=>De(t,e),Un=rt([En,je],()=>kn);rt([En],()=>Mn),rt([En],()=>Nn),rt([En],()=>Rn),rt([En,je],()=>$n);var Gn={servicesAreLoading:"Услуги загружаются...",closeConfirmTitle:"Подтверждение",closeConfirmMessage:"Вы уверены, что хотите закрыть окно? Заполненная информация может быть утеряна",yes:"Да",no:"Нет"},Dn={servicesAreLoading:"Services are loading...",closeConfirmTitle:"Confirmation",closeConfirmMessage:"Are you sure you want to close this window? The information you've entered may be lost.",yes:"Yes",no:"No"},zn={servicesAreLoading:"Dienste werden geladen...",closeConfirmTitle:"Bestätigung",closeConfirmMessage:"Sind Sie sicher, dass Sie das Fenster schließen möchten? Eingegebene Informationen könnten verloren gehen.",yes:"Ja",no:"Nein"},jn={servicesAreLoading:"Cargando servicios...",closeConfirmTitle:"Confirmación",closeConfirmMessage:"¿Está seguro de que desea cerrar la ventana? La información introducida podría perderse.",yes:"Sí",no:"No"},qn={servicesAreLoading:"Hizmetler yükleniyor...",closeConfirmTitle:"Onay",closeConfirmMessage:"Pencereyi kapatmak istediğinizden emin misiniz? Girilen bilgiler kaybolabilir.",yes:"Evet",no:"Hayır"},Fn={servicesAreLoading:"Услуге се учитавају...",closeConfirmTitle:"Потврда",closeConfirmMessage:"Да ли сте сигурни да желите да затворите прозор? Унети подаци могу бити изгубљени.",yes:"Да",no:"Не"};const Vn=(t,e)=>{const{subscribe:n,set:o,update:r}=ot(e),i=localStorage.getItem(t);return i&&o(JSON.parse(i)),n(e=>{localStorage.setItem(t,JSON.stringify(e))}),{subscribe:n,set:o,update:r}},{window:Xn}=f;function Wn(t){d(t,"svelte-1evndjn",".iframe-button.svelte-1evndjn.svelte-1evndjn.svelte-1evndjn{all:unset;display:flex;position:fixed;top:50%;transform:translateY(-50%);padding:8px;cursor:pointer;justify-content:center;align-items:center;box-shadow:0 0 5px 3px rgba(0, 0, 0, 0.1);border-radius:16px;transition:0.15s all;display:none}.iframe-button.svelte-1evndjn.svelte-1evndjn.svelte-1evndjn:focus{-webkit-filter:brightness(1.05);filter:brightness(1.05)}.iframe-button.svelte-1evndjn.svelte-1evndjn.svelte-1evndjn:hover{-webkit-filter:brightness(1.05);filter:brightness(1.05)}.iframe-button.visibleInDesktop.svelte-1evndjn.svelte-1evndjn.svelte-1evndjn{display:flex}@media(max-width: 600px){.iframe-button.svelte-1evndjn.svelte-1evndjn.svelte-1evndjn{top:unset;border-radius:360px;display:none !important}.iframe-button.visibleInMobile.svelte-1evndjn.svelte-1evndjn.svelte-1evndjn{display:flex !important}}.iframe-button.svelte-1evndjn>.label.svelte-1evndjn.svelte-1evndjn{color:white;font-size:18px;font-family:Roboto, Montserrat, Arial, sans-serif;margin-right:5px;margin-left:5px;text-align:center}.iframe-button.svelte-1evndjn>.icon.svelte-1evndjn.svelte-1evndjn{width:32px;height:32px;background-size:cover;background-position:center}.iframe-button.svelte-1evndjn>.hint.svelte-1evndjn.svelte-1evndjn{position:absolute;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:150px;padding:8px 14px;border-radius:4px;text-align:center;font-family:Roboto, Montserrat, Arial, sans-serif}.iframe-button.svelte-1evndjn>.hint.svelte-1evndjn>.rect.svelte-1evndjn{position:absolute;top:50%;transform:rotate(45deg) translateY(-50%);width:16px;height:16px;background-color:inherit}")}function Kn(t){let e;return{c(){e=b("span"),x(e,"class","label svelte-1evndjn")},m(n,o){m(n,e,o),e.innerHTML=t[0]},p(t,n){1&n&&(e.innerHTML=t[0])},d(t){t&&g(e)}}}function Yn(t){let e,n,o,r;return{c(){e=b("div"),n=new A(!1),o=y(),r=b("div"),n.a=o,x(r,"class","rect svelte-1evndjn"),H(r,"left",t[4]?"-12px":null),H(r,"right",t[4]?null:"0"),x(e,"class","hint svelte-1evndjn"),H(e,"color",t[7]),H(e,"background-color",t[8]),H(e,"left",t[4]?null:"-15px"),H(e,"right",t[4]?"-15px":null),H(e,"transform",t[4]?"translateX(100%)":"translateX(-100%)")},m(i,s){m(i,e,s),n.m(t[0],e),p(e,o),p(e,r)},p(t,o){1&o&&n.p(t[0]),16&o&&H(r,"left",t[4]?"-12px":null),16&o&&H(r,"right",t[4]?null:"0"),128&o&&H(e,"color",t[7]),256&o&&H(e,"background-color",t[8]),16&o&&H(e,"left",t[4]?null:"-15px"),16&o&&H(e,"right",t[4]?"-15px":null),16&o&&H(e,"transform",t[4]?"translateX(100%)":"translateX(-100%)")},d(t){t&&g(e)}}}function Zn(e){let n,o,i,s,a,l;$(e[17]);let c=e[10]>600&&Kn(e),u=e[10]<=600&&!e[11]&&Yn(e);return{c(){n=b("button"),c&&c.c(),o=y(),i=b("div"),s=y(),u&&u.c(),x(i,"class","icon svelte-1evndjn"),H(i,"background-image",`url(${e[1]})`),x(n,"class","iframe-button svelte-1evndjn"),B(n,"visibleInDesktop",e[9].includes("desktop")),B(n,"visibleInMobile",e[9].includes("mobile")),H(n,"background-color",e[2]),H(n,"z-index",e[3]-1),H(n,"flex-direction",e[4]?"row-reverse":"row"),H(n,"left",e[4]?e[5]:null),H(n,"right",e[4]?null:e[5]),H(n,"bottom",e[10]<=600?e[6]:null)},m(t,r){m(t,n,r),c&&c.m(n,null),p(n,o),p(n,i),p(n,s),u&&u.m(n,null),a||(l=[w(Xn,"resize",e[17]),w(n,"click",e[13])],a=!0)},p(t,[e]){t[10]>600?c?c.p(t,e):(c=Kn(t),c.c(),c.m(n,o)):c&&(c.d(1),c=null),2&e&&H(i,"background-image",`url(${t[1]})`),t[10]<=600&&!t[11]?u?u.p(t,e):(u=Yn(t),u.c(),u.m(n,null)):u&&(u.d(1),u=null),512&e&&B(n,"visibleInDesktop",t[9].includes("desktop")),512&e&&B(n,"visibleInMobile",t[9].includes("mobile")),4&e&&H(n,"background-color",t[2]),8&e&&H(n,"z-index",t[3]-1),16&e&&H(n,"flex-direction",t[4]?"row-reverse":"row"),48&e&&H(n,"left",t[4]?t[5]:null),48&e&&H(n,"right",t[4]?null:t[5]),1088&e&&H(n,"bottom",t[10]<=600?t[6]:null)},i:t,o:t,d(t){t&&g(n),c&&c.d(),u&&u.d(),a=!1,r(l)}}}function Jn(t,e,n){let o,{label:r}=e,{icon:i}=e,{color:s}=e,{zIndex:a}=e,{left:l}=e,{horizontalOffset:c}=e,{bottom:f}=e,{hintTextColor:p}
1=e,{hintBackgroundColor:d}=e,{buttonOpensExternalSite:m}=e,{hotelId:g}=e,{serverUrl:b}=e,{buttonVisibleIn:v}=e;const y=S(),E=Vn("cncrgPopupHintClicked",!1);let w;return u(t,E,t=>n(11,o=t)),t.$$set=t=>{"label"in t&&n(0,r=t.label),"icon"in t&&n(1,i=t.icon),"color"in t&&n(2,s=t.color),"zIndex"in t&&n(3,a=t.zIndex),"left"in t&&n(4,l=t.left),"horizontalOffset"in t&&n(5,c=t.horizontalOffset),"bottom"in t&&n(6,f=t.bottom),"hintTextColor"in t&&n(7,p=t.hintTextColor),"hintBackgroundColor"in t&&n(8,d=t.hintBackgroundColor),"buttonOpensExternalSite"in t&&n(14,m=t.buttonOpensExternalSite),"hotelId"in t&&n(15,g=t.hotelId),"serverUrl"in t&&n(16,b=t.serverUrl),"buttonVisibleIn"in t&&n(9,v=t.buttonVisibleIn)},[r,i,s,a,l,c,f,p,d,v,w,o,E,function({target:t}){t.blur(),w<=600&&h(E,o=!0,o),m?window.open(`${b}/hotel/${g}${window.location.search}`):y("click")},m,g,b,function(){n(10,w=Xn.innerWidth)}]}class Qn extends et{constructor(t){super(),tt(this,t,Jn,Zn,s,{label:0,icon:1,color:2,zIndex:3,left:4,horizontalOffset:5,bottom:6,hintTextColor:7,hintBackgroun
1dColor:8,buttonOpensExternalSite:14,hotelId:15,serverUrl:16,buttonVisibleIn:9},Wn)}}var to,eo,no=(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){if("number"!=typeof t||t<-1||t>1||"string"!=typeof e||"r"!=e[0]&&"#"!=e[0]||n&&"string"!=typeof n)return null;var o=function(t){var e=t.length,n={};if(e>9){if((t=t.split(",")).length<3||t.length>4)return null;n[0]=r(t[0].split("(")[1]),n[1]=r(t[1]),n[2]=r(t[2]),n[3]=t[3]?parseFloat(t[3]):-1}else{if(8==e||6==e||e<4)return null;e<6&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(e>4?""+t[4]+t[4]:"")),t=r(t.slice(1),16),n[0]=t>>16&255,n[1]=t>>8&255,n[2]=255&t,n[3]=-1,9!=e&&5!=e||(n[3]=i(n[2]/255*1e4)/1e4,n[2]=n[1],n[1]=n[0],n[0]=t>>24&255)}return n},r=parseInt,i=Math.round,s=e.length>9,a=(s="string"==typeof n?n.length>9||"c"==n&&!s:s,t<0),l=(t=a?-1*t:t,n=n&&"c"!=n?n:a?"#000000":"#FFFFFF",o(e)),c=o(n);return l&&c?s?"rgb"+(l[3]>-1||c[3]>-1?"a(":"(")+i((c[0]-l[0])*t+l[0])+","+i((c[1]-l[1])*t+l[1])+","+i((c[2]-l[2])*t+l[2])+(l[3]<0&&c[3]<0?")":","+(l[3]>-1&&c[3]>-1?i(1e4*((c[3]-l[3])*t+l[3]))/1e4:c[3]<0?l[3]:c[3])+")"):"#"+(4294967296+16777216*i((c[0]-l[0])*t+l[0])+65536*i((c[1]-l[1])*t+l[1])+256*i((c[2]-l[2])*t+l[2])+(l[3]>-1&&c[3]>-1?i(255*((c[3]-l[3])*t+l[3])):c[3]>-1?i(255*c[3]):l[3]>-1?i(255*l[3]):255)).toString(16).slice(1,l[3]>-1||c[3]>-1?void 0:-2):null}}(to={exports:{}},to.exports),to.exports),oo=(eo=no)&&eo.__esModule&&Object.prototype.hasOwnProperty.call(eo,"default")?eo.default:eo;function ro(t){d(t,"svelte-rfha09",".overlay.svelte-rfha09{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center}.popup.svelte-rfha09{background:white;padding:20px;border-radius:8px;box-shadow:0 2px 10px rgba(0, 0, 0, 0.1);max-width:400px;@media (max-width: 600px) {\n    max-width: 75%;\n  }}h3.svelte-rfha09{margin:0 0 15px;font-family:Roboto, Montserrat, Arial, sans-serif}p.svelte-rfha09{margin:0 0 20px;font-family:Roboto, Montserrat, Arial, sans-serif}.buttons.svelte-rfha09{display:flex;justify-content:flex-end;gap:10px}button.svelte-rfha09{padding:8px 20px;border:none;border-radius:4px;cursor:pointer;font-family:Roboto, Montserrat, Arial, sans-serif;transition:.2s all}.yes.svelte-rfha09{background:#dc3545;color:white}.no.svelte-rfha09{background:#222222;color:white}button.svelte-rfha09:hover{opacity:0.9}")}function io(t){let e,n,o,s,a,l,c,u,h,f,d,E,B,A,_,I,L=t[5]("closeConfirmTitle")+"",C=t[5]("yes")+"",S=t[5]("no")+"";return{c(){e=b("div"),n=b("div"),o=b("h3"),s=v(L),a=y(),l=b("p"),c=v(t[4]),u=y(),h=b("div"),f=b("button"),d=v(C),E=y(),B=b("button"),A=v(S),x(o,"class","svelte-rfha09"),x(l,"class","svelte-rfha09"),x(f,"class","yes svelte-rfha09"),x(B,"class","no svelte-rfha09"),x(h,"class","buttons svelte-rfha09"),x(n,"class","popup svelte-rfha09"),x(e,"class","overlay svelte-rfha09"),H(e,"z-index",t[1])},m(r,g){m(r,e,g),p(e,n),p(n,o),p(o,s),p(n,a),p(n,l),p(l,c),p(n,u),p(n,h),p(h,f),p(f,d),p(h,E),p(h,B),p(B,A),_||(I=[w(f,"click",(function(){i(t[2])&&t[2].apply(this,arguments)})),w(B,"click",(function(){i(t[3])&&t[3].apply(this,arguments)}))],_=!0)},p(n,o){t=n,32&o&&L!==(L=t[5]("closeConfirmTitle")+"")&&T(s,L),16&o&&T(c,t[4]),32&o&&C!==(C=t[5]("yes")+"")&&T(d,C),32&o&&S!==(S=t[5]("no")+"")&&T(A,S),2&o&&H(e,"z-index",t[1])},d(t){t&&g(e),_=!1,r(I)}}}function so(e){let n,o=e[0]&&io(e);return{c(){o&&o.c(),n=E()},m(t,e){o&&o.m(t,e),m(t,n,e)},p(t,[e]){t[0]?o?o.p(t,e):(o=io(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:t,o:t,d(t){o&&o.d(t),t&&g(n)}}}function ao(t,e,n){let o;u(t,Un,t=>n(5,o=t));let{show:r=!1}=e,{zIndex:i}=e,{onConfirm:s}=e,{onCancel:a}=e,{message:l=o("closeConfirmMessage")}=e;return t.$$set=t=>{"show"in t&&n(0,r=t.show),"zIndex"in t&&n(1,i=t.zIndex),"onConfirm"in t&&n(2,s=t.onConfirm),"onCancel"in t&&n(3,a=t.onCancel),"message"in t&&n(4,l=t.message)},[r,i,s,a,l,o]}class lo extends et{constructor(t){super(),tt(this,t,ao,so,s,{show:0,zIndex:1,onConfirm:2,onCancel:3,message:4},ro)}}const{window:co}=f;function uo(t){d(t,"svelte-ad6q5z",".shadow.svelte-ad6q5z.svelte-ad6q5z{all:unset;position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5)}iframe.svelte-ad6q5z.svelte-ad6q5z{position:fixed;left:50%;transform:translateX(-50%);box-shadow:0 0 5px 5px rgba(0, 0, 0, 0.05);opacity:0;transition:0.5s opacity;-ms-scroll-chaining:none;overscroll-behavior:contain;touch-action:pan-y}.loading.svelte-ad6q5z.svelte-ad6q5z{display:flex;position:fixed;left:50%;transform:translateX(-50%);opacity:1;transition:0.5s opacity;pointer-events:none;flex-direction:column;align-items:center;justify-content:center}.loading.svelte-ad6q5z>.icon.svelte-ad6q5z{-webkit-filter:brightness(10);filter:brightness(10);margin-bottom:25px;opacity:1;transition:1s opacity}.loading.svelte-ad6q5z>.label.svelte-ad6q5z{font-size:21px;color:white;text-align:center;font-family:Roboto, Montserrat, Arial, sans-serif}.loading.svelte-ad6q5z>.logo.svelte-ad6q5z{position:absolute;bottom:15px;left:50%;transform:translateX(-50%)}")}function ho(t){let e,n,o;return{c(){e=b("button"),x(e,"class","shadow svelte-ad6q5z"),H(e,"z-index",t[2])},m(r,i){m(r,e,i),n||(o=w(e,"click",t[13]),n=!0)},p(t,n){4&n[0]&&H(e,"z-index",t[2])},d(t){t&&g(e),n=!1,o()}}}function fo(t){let e,n,o,r,i,s,a,c,u,h,f,d,E=(t[1]||t[12]("servicesAreLoading"))+"";return f=new lo({props:{show:t[9],zIndex:t[2],onConfirm:t[21],onCancel:t[22]}}),{c(){e=b("div"),n=b("img"),r=y(),i=b("div"),s=v(E),a=y(),c=b("img"),h=y(),Y(f.$$.fragment),x(n,"alt","loading icon"),x(n,"class","icon svelte-ad6q5z"),l(n.src,o="https://cncrg.org/fav
1icon.ico")||x(n,"src","https://cncrg.org/favicon.ico"),x(n,"width","90"),H(n,"opacity",t[7]),x(i,"class","label svelte-ad6q5z"),x(c,"alt","loading logo"),l(c.src,u="https://partner.cncrg.org/Logo.png")||x(c,"src","https://partner.cncrg.org/Logo.png"),x(c,"class","logo svelte-ad6q5z"),x(c,"width","153"),x(e,"class","loading svelte-ad6q5z"),H(e,"z-index",t[2]),H(e,"opacity",t[5]?"0":"1"),H(e,"background",`linear-gradient(to top, ${t[3]}, ${oo(-.5,t[3])||"rgba(0,0,0,.8)"}`),H(e,"width",t[11]),H(e,"top",t[10]?"10px":"0"),H(e,"border-radius",t[10]?"8px":"0"),H(e,"height",t[10]?t[8]-50+"px":t[8]+"px")},m(t,o){m(t,e,o),p(e,n),p(e,r),p(e,i),p(i,s),p(e,a),p(e,c),m(t,h,o),Z(f,t,o),d=!0},p(t,o){128&o[0]&&H(n,"opacity",t[7]),(!d||4098&o[0])&&E!==(E=(t[1]||t[12]("servicesAreLoading"))+"")&&T(s,E),4&o[0]&&H(e,"z-index",t[2]),32&o[0]&&H(e,"opacity",t[5]?"0":"1"),8&o[0]&&H(e,"background",`linear-gradient(to top, ${t[3]}, ${oo(-.5,t[3])||"rgba(0,0,0,.8)"}`),2048&o[0]&&H(e,"width",t[11]),1024&o[0]&&H(e,"top",t[10]?"10px":"0"),1024&o[0]&&H(e,"border-radius",t[10]?"8px":"0"),1280&o[0]&&H(e,"height",t[10]?t[8]-50+"px":t[8]+"px");const r={};512&o[0]&&(r.show=t[9]),4&o[0]&&(r.zIndex=t[2]),513&o[0]&&(r.onConfirm=t[21]),512&o[0]&&(r.onCancel=t[22]),f.$set(r)},i(t){d||(X(f.$$.fragment,t),d=!0)},o(t){W(f.$$.fragment,t),d=!1},d(t){t&&g(e),t&&g(h),J(f,t)}}}function po(t){let e,n,o,r,i,s,a;$(t[19]);let l=t[0]&&ho(t),c=t[0]&&fo(t);return{c(){l&&l.c(),e=y(),n=b("iframe"),o=y(),c&&c.c(),r=E(),x(n,"title","widget iframe"),x(n,"allow","camera"),x(n,"frameborder","0"),x(n,"class","svelte-ad6q5z"),H(n,"z-index",t[2]),H(n,"display",t[0]?"block":"none"),H(n,"opacity",t[5]?"1":"0"),H(n,"width",t[11]),H(n,"top",t[10]?"10px":"0"),H(n,"border-radius",t[10]?"8px":"0"),H(n,"height",t[10]?t[8]-50+"px":t[8]+"px")},m(u,h){l&&l.m(u,h),m(u,e,h),m(u,n,h),t[20](n),m(u,o,h),c&&c.m(u,h),m(u,r,h),i=!0,s||(a=w(co,"resize",t[19]),s=!0)},p(t,o){t[0]?l?l.p(t,o):(l=ho(t),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),4&o[0]&&H(n,"z-index",t[2]),1&o[0]&&H(n,"display",t[0]?"block":"none"),32&o[0]&&H(n,"opacity",t[5]?"1":"0"),2048&o[0]&&H(n,"width",t[11]),1024&o[0]&&H(n,"top",t[10]?"10px":"0"),1024&o[0]&&H(n,"border-radius",t[10]?"8px":"0"),1280&o[0]&&H(n,"height",t[10]?t[8]-50+"px":t[8]+"px"),t[0]?c?(c.p(t,o),1&o[0]&&X(c,1)):(c=fo(t),c.c(),X(c,1),c.m(r.parentNode,r)):c&&(F(),W(c,1,1,()=>{c=null}),V())},i(t){i||(X(c),i=!0)},o(t){W(c),i=!1},d(i){l&&l.d(i),i&&g(e),i&&g(n),t[20](null),i&&g(o),c&&c.d(i),i&&g(r),s=!1,a()}}}function mo(t,e,n){let o,r,i;u(t,Un,t=>n(12,i=t));let s,a,l,c,{iframeActive:h}=e,{loadingLabel:f}=e,{zIndex:p}=e,{color:d}=e,{serverUrl:m}=e,{overrideLocale:g}=e,{locale:b}=e,{token:v}=e,{hotelId:y}=e,E=!1,w="1";function x(){let t=()=>{let t=document.getElementsByClassName("tl-widgets-container")[0];t&&Number(t.style.zIndex)>=Number(p)-1&&(t.style.zIndex=String(p-2))};setTimeout(t,100),setTimeout(t,1500)}setInterval(x,5e3);const T=new URLSearchParams(window.location.search),H=T.get("showConciergeService");["1","true"].includes(H)&&(h=!0);const B=T.get("conciergeSignContract")||T.get("c_sgn");B&&(h=!0);const A=T.get("conciergeUnlock")||T.get("c_unlck");A&&(h=!0);const _=!!B;function I(t){if(!(t.data&&t.data.type&&s&&s.contentWindow))return!1;let e=null;try{e=new URL(m).origin}catch(t){e=null}return t.source===s.contentWindow&&(!e||!t.origin||t.origin===e)}function L(t,e){s&&s.contentWindow&&(s.contentWindow.postMessage({type:t,data:e},"*"),console.log("[cncrg popup events] =>",t,e))}function S(t,e,n=!1){const o=r=>{if(!I(r))return;const{type:i,data:s}=r.data;i==t&&(e(s),n&&window.removeEventListener("message",o))};window.addEventListener("message",o)}function O(t){E?t():S("init",t,!0)}window.addEventListener("message",t=>{if(!I(t))return;const{type:e,data:n}=t.data;console.log("[cncrg popup events] <=",e,n),"concierge-sign-open-standalone"==e&&function(t){let e,n=null;try{n=new URL(m).origin}catch(t){return}try{e=new URL(t)}catch(t){return}if(e.origin!==n)return;if(!e.pathname.startsWith("/sign/"))return;window.location.href=e.href}(t.data.url)}),S("init",()=>{n(5,E=!0);const t=[];
1B?t.push("/sign/"+B):A?t.push("/unlock/"+A):y&&t.push("/hotel/"+y),T.get("conciergeCategory")&&t.push("/category/"+T.get("conciergeCategory")),T.get("conciergeService")&&t.push("/service/"+T.get("conciergeService")),L("open",t.map(t=>t+window.location.search)),L("init-override-locale",g),b&&L("set-locale",b),v&&L("set-token",v)});let k=!1;function M(){n(0,h=!1),n(5,E=!1)}S("close",M),window.cncrg={close:M,on:S,toggle(t){n(0,h="boolean"==typeof t?t:!h)},openService(t,e={}){e={hideBackBtn:!1,...e},n(0,h=!0),O(()=>{L("open","/service/"+t+(e.hideBackBtn?"?hideBackBtn=true":""))})},openCategory(t,e={}){e={hideBackBtn:!1,...e},n(0,h=!0),O(()=>{L("open","/category/"+t+(e.hideBackBtn?"?hideBackBtn=true":""))})},openChat(){n(0,h=!0),O(()=>{L("open-chat",y)})},setAttributeValue(t,e){O(()=>{L("set-attribute-value",{attrId:t,value:e})})},resetCustomerId(){O(()=>{L("reset-customerId")})},restart(){M(),n(0,h=!0)},patchOptions(t){if(!window.cncrgWidget)throw Error("Unable to find window.cncrgWidget. When using custom registration method use cncrgWidget.$$set instead");window.cncrgWidget.$$set(t)}};let N=null;function R(){N&&(document.body.style.overflow=N.bodyOverflow,document.documentElement.style.overflow=N.rootOverflow,N=null)}C(R);return t.$$set=t=>{"iframeActive"in t&&n(0,h=t.iframeActive),"loadingLabel"in t&&n(1,f=t.loadingLabel),"zIndex"in t&&n(2,p=t.zIndex),"color"in t&&n(3,d=t.color),"serverUrl"in t&&n(14,m=t.serverUrl),"overrideLocale"in t&&n(15,g=t.overrideLocale),"locale"in t&&n(16,b=t.locale),"token"in t&&n(17,v=t.token),"hotelId"in t&&n(18,y=t.hotelId)},t.$$.update=()=>{var e;16433&t.$$.dirty[0]&&h&&!E&&(e=()=>s,new Promise(t=>{if(e())return t(e());const n=setInterval(()=>{e()&&(clearInterval(n),t(e()))},10)})).then(t=>{t.src=m+window.location.search}),1&t.$$.dirty[0]&&h&&(a&&clearInterval(a),n(7,w="1"),a=setInterval(()=>{n(7,w="1"==w?".5":"1")},1e3)),64&t.$$.dirty[0]&&n(11,o=l>600?Math.min(800,l-32)+"px":"95%"),64&t.$$.dirty[0]&&n(10,r=l<=600),1&t.$$.dirty[0]&&h&&x(),1&t.$$.dirty[0]&&(h?N||(N={bodyOverflow:document.body.style.overflow,rootOverflow:document.documentElement.style.overflow},document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"):R())},[h,f,p,d,s,E,l,w,c,k,r,o,i,function(){_?n(9,k=!0):n(0,h=!1)},m,g,b,v,y,function(){n(6,l=co.innerWidth),n(8,c=co.innerHeight)},function(t){P[t?"unshift":"push"](()=>{s=t,n(4,s),n(0,h),n(5,E),n(14,m)})},()=>{n(9,k=!1),n(0,h=!1)},()=>n(9,k=!1)]}class go extends et{constructor(t){super(),tt(this,t,mo,po,s,{iframeActive:0,loadingLabel:1,zIndex:2,color:3,serverUrl:14,overrideLocale:15,locale:16,token:17,hotelId:18},uo,[-1,-1])}}const bo={left:"right",right:"left",top:"bottom",bottom:"top"};function vo(t){d(t,"svelte-8q4n54",":root{--tooltip-background-color:rgba(0, 0, 0, 0.9);--tooltip-border-radius:4px;--tooltip-box-shadow:0 1px 20px rgba(0, 0, 0, 0.25);--tooltip-font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,\n    'Helvetica Neue', sans-serif;--tooltip-font-size:14px;--tooltip-font-weight:500;--tooltip-line-height:1.25rem;--tooltip-color:#fff;--tooltip-offset-x:12px;--tooltip-offset-y:12px;--tooltip-padding:12px;--tooltip-z-index:100;--tooltip-arrow-size:10px}.tooltip.svelte-8q4n54{background-color:var(--tooltip-background-color);box-shadow:var(--tooltip-box-shadow);border-radius:var(--tooltip-border-radius);color:var(--tooltip-color);opacity:0;font-family:var(--tooltip-font-family);font-size:var(--tooltip-font-size);font-style:normal;font-weight:var(--tooltip-font-weight);line-height:var(--tooltip-line-height);padding:var(--tooltip-padding);position:absolute;text-align:left;visibility:hidden;white-space:nowrap;z-index:var(--tooltip-z-index)}.tooltip.show.svelte-8q4n54{opacity:1;visibility:visible;white-space:normal}.tooltip.bottom.svelte-8q4n54:after,.tooltip.left.svelte-8q4n54:after,.tooltip.right.svelte-8q4n54:after,.tooltip.top.svelte-8q4n54:after{border:var(--tooltip-arrow-size) solid var(--tooltip-background-color);content:' ';position:absolute}.tooltip.arrowless.svelte-8q4n54:after{border:0 !important}.tooltip.bottom.svelte-8q4n54,.tooltip.top.svelte-8q4n54{--tooltip-offset-x:0px;--tooltip-offset-y:12px}.tooltip.left.svelte-8q4n54,.tooltip.right.svelte-8q4n54{--tooltip-offset-x:12px;--tooltip-offset-y:0px}.tooltip.bottom.svelte-8q4n54{bottom:0;left:50%;transform:translate(\n    calc(-50% + var(--tooltip-offset-x)),\n    calc(100% + var(--tooltip-offset-y))\n  )}.tooltip.bottom.svelte-8q4n54:after{border-color:transparent transparent var(--tooltip-background-color);left:50%;
1top:0;transform:translate(-50%, -99%)}.tooltip.top.svelte-8q4n54{left:50%;top:0;transform:translate(\n    calc(-50% + var(--tooltip-offset-x)),\n    calc(-100% - var(--tooltip-offset-y))\n  )}.tooltip.top.svelte-8q4n54:after{border-color:var(--tooltip-background-color) transparent transparent transparent;bottom:0;left:50%;transform:translate(-50%, 99%)}.tooltip.left.svelte-8q4n54{left:0;top:50%;transform:translate(\n    calc(-100% - var(--tooltip-offset-x)),\n    calc(-50% - var(--tooltip-offset-y))\n  )}.tooltip.left.svelte-8q4n54:after{border-color:transparent transparent transparent var(--tooltip-background-color);right:0;top:50%;transform:translate(99%, -50%)}.tooltip.right.svelte-8q4n54{right:0;top:50%;transform:translate(\n    calc(100% + var(--tooltip-offset-x)),\n    calc(-50% - var(--tooltip-offset-y))\n  )}.tooltip.right.svelte-8q4n54:after{border-color:transparent var(--tooltip-background-color) transparent transparent;left:0;top:50%;transform:translate(-99%, -50%)}.tooltip.animation-fade.svelte-8q4n54{opacity:0;transition:opacity 0.25s ease-in-out}.tooltip.animation-fade.show.svelte-8q4n54{opacity:1}.tooltip.top.animation-slide.svelte-8q4n54{margin-top:10px;opacity:0;transition:opacity 0.25s ease-in-out, margin 0.25s ease-in-out}.tooltip.top.animation-slide.show.svelte-8q4n54{margin-top:0;opacity:1}.tooltip.bottom.animation-slide.svelte-8q4n54{margin-bottom:20px;opacity:0;transition:opacity 0.25s ease-in-out, margin 0.25s ease-in-out}.tooltip.bottom.animation-slide.show.svelte-8q4n54{margin-bottom:0;opacity:1}.tooltip.right.animation-slide.svelte-8q4n54{margin-right:20px;opacity:0;transition:opacity 0.25s ease-in-out, margin 0.25s ease-in-out}.tooltip.right.animation-slide.show.svelte-8q4n54{margin-right:0;opacity:1}.tooltip.left.animation-slide.svelte-8q4n54{margin-left:20px;opacity:0;transition:opacity 0.25s ease-in-out, margin 0.25s ease-in-out}.tooltip.left.animation-slide.show.svelte-8q4n54{margin-left:0;opacity:1}.tooltip.left.animation-puff.svelte-8q4n54{-webkit-filter:blur(2px);filter:blur(2px);opacity:0;transform:translate(\n    calc(-100% - var(--tooltip-offset-x)),\n    calc(-50% - var(--tooltip-offset-y))\n  ) scale(2, 2);transform-origin:50% 50%;transition:opacity 0.25s ease-in-out, transform 0.25s ease-in-out, -webkit-filter 0.25s ease-in-out;transition:opacity 0.25s ease-in-out, filter 0.25s ease-in-out, transform 0.25s ease-in-out;transition:opacity 0.25s ease-in-out, filter 0.25s ease-in-out, transform 0.25s ease-in-out, -webkit-filter 0.25s ease-in-out}.tooltip.left.animation-puff.show.svelte-8q4n54{-webkit-filter:blur(0);filter:blur(0);opacity:1;transform:translate(\n    calc(-100% - var(--tooltip-offset-x)),\n    calc(-50% - var(--tooltip-offset-y))\n  ) scale(1, 1)}.tooltip.right.animation-puff.svelte-8q4n54{-webkit-filter:blur(2px);filter:blur(2px);opacity:0;transform:translate(\n    calc(100% + var(--tooltip-offset-x)),\n    calc(-50% - var(--tooltip-offset-y))\n  ) scale(2, 2);transform-origin:50% 50%;transition:opacity 0.25s ease-in-out, transform 0.25s ease-in-out, -webkit-filter 0.25s ease-in-out;transition:opacity 0.25s ease-in-out, filter 0.25s ease-in-out, transform 0.25s ease-in-out;transition:opacity 0.25s ease-in-out, filter 0.25s ease-in-out, transform 0.25s ease-in-out, -webkit-filter 0.25s ease-in-out}.tooltip.right.animation-puff.show.svelte-8q4n54{-webkit-filter:blur(0);filter:blur(0);opacity:1;transform:translate(\n    calc(100% + var(--tooltip-offset-x)),\n    calc(-50% - var(--tooltip-offset-y))\n  ) scale(1, 1)}.tooltip.top.animation-puff.svelte-8q4n54{-webkit-filter:blur(2px);filter:blur(2px);opacity:0;transform:translate(\n    calc(-50% + var(--tooltip-offset-x)),\n    calc(-100% - var(--tooltip-offset-y))\n  ) scale(2, 2);transform-origin:50% 50%;transition:opacity 0.25s ease-in-out, transform 0.25s ease-in-out, -webkit-filter 0.25s ease-in-out;transition:opacity 0.25s ease-in-out, filter 0.25s ease-in-out, transform 0.25s ease-in-out;transition:opacity 0.25s ease-in-out, filter 0.25s ease-in-out, transform 0.25s ease-in-out, -webkit-filter 0.25s ease-in-out}.tooltip.top.animation-puff.show.svelte-8q4n54{-webkit-filter:blur(0);filter:blur(0);opacity:1;transform:translate(\n    calc(-50% + var(--tooltip-offset-x)),\n    calc(-100% - var(--tooltip-offset-y))\n  ) scale(1, 1)}.tooltip.bottom.animation-puff.svelte-8q4n54{-webkit-filter:blur(2px);filter:blur(2px);opacity:0;transform:translate(\n    calc(-50% + var(--tooltip-offset-x)),\n    calc(100% + var(--tooltip-offset-y))\n  ) scale(2, 2);transform-origin:50% 50%;transition:opacity 0.25s ease-in-out, transform 0.25s ease-in-out, -webkit-filter 0.25s ease-in-out;transition:opacity 0.25s ease-in-out, filter 0.25s ease-in-out, transform 0.25s ease-in-out;transition:opacity 0.25s ease-in-out, filter 0.25s ease-in-out, transform 0.25s ease-in-out, -webkit-filter 0.25s ease-in-out}.tooltip.bottom.animation-puff.show.svelte-8q4n54{-webkit-filter:blur(0);filter:blur(0);opacity:1;transform:translate(\n    calc(-50% + var(--tooltip-offset-x)),\n    calc(100% + var(--tooltip-offset-y))\n  ) scale(1, 1)}.tooltip.left.animation-bounce.svelte-8q4n54{opacity:0;transform:translate(\n    calc(-100% - var(--tooltip-offset-x)),\n    calc(-50% + var(--tooltip-offset-y))\n  ) scale(1.2, 1.2);transform-origin:50% 50%;transition:opacity 0.25s ease-in-out, transform 0.25s cubic-bezier(0.5, -1, 0.5, 3)}.tooltip.left.animation-bounce.show.svelte-8q4n54{opacity:1;transform:translate(\n    calc(-100% - var(--tooltip-offset-x)),\n    calc(-50% + var(--tooltip-offset-y))\n  ) scale(1, 1)}.tooltip.right.animation-bounce.svelte-8q4n54{opacity:0;transform:translate(calc(100% + var(--tooltip-offset-x)), calc(-50% + var(--tooltip-offset-y))) scale(1.2, 1.2);transform-origin:50% 50%;transition:opacity 0.25s ease-in-out, transform 0.25s cubic-bezier(0.5, -1, 0.5, 3)}.tooltip.right.animation-bounce.show.svelte-8q4n54{opacity:1;transform:translate(\n    calc(100% + var(--tooltip-offset-x)),\n    calc(-50% + var(--tooltip-offset-y))\n  ) scale(1, 1)}.tooltip.top.animation-bounce.svelte-8q4n54{opacity:0;transform:translate(\n    calc(-50% + var(--tooltip-offset-x)),\n    calc(-100% - var(--tooltip-offset-y))\n  ) scale(1.2, 1.2);transform-origin:50% 50%;transition:opacity 0.25s ease-in-out, transform 0.25s cubic-bezier(0.5, -1, 0.5, 3)}.tooltip.top.animation-bounce.show.svelte-8q4n54{opacity:1;transform:translate(\n    calc(-50% + var(--tooltip-offset-x)),\n    calc(-100% - var(--tooltip-offset-y))\n  ) scale(1, 1)}.tooltip.bottom.animation-bounce.svelte-8q4n54{opacity:0;transform:translate(\n    calc(-50% + var(--tooltip-offset-x)),\n    calc(100% + var(--tooltip-offset-y))\n  ) scale(1.2, 1.2);transform-origin:50% 50%;transition:opacity 0.25s ease-in-out, transform 0.25s cubic-bezier(0.5, -1, 0.5, 3)}.tooltip.bottom.animation-bounce.show.svelte-8q4n54{opacity:1;transform:translate(\n    calc(-50% + var(--tooltip-offset-x)),\n    calc(100% + var(--tooltip-offset-y))\n  ) scale(1, 1)}")}function yo(t){let e,n;
1return{c(){e=new A(!1),n=E(),e.a=n},m(o,r){e.m(t[1],o,r),m(o,n,r)},p(t,n){2&n&&e.p(t[1])},d(t){t&&g(n),t&&e.d()}}}function Eo(e){let n,o,r=!e[10]&&yo(e);return{c(){n=b("div"),r&&r.c(),x(n,"class",o="tooltip animation-"+e[8]+" "+e[0]+" "+e[4]+" svelte-8q4n54"),H(n,"min-width",e[7]+"px"),H(n,"max-width",e[3]+"px"),H(n,"text-align",e[2]),B(n,"show",e[9]),B(n,"arrowless",!e[5])},m(t,o){m(t,n,o),r&&r.m(n,null),e[14](n)},p(t,[e]){t[10]?r&&(r.d(1),r=null):r?r.p(t,e):(r=yo(t),r.c(),r.m(n,null)),273&e&&o!==(o="tooltip animation-"+t[8]+" "+t[0]+" "+t[4]+" svelte-8q4n54")&&x(n,"class",o),128&e&&H(n,"min-width",t[7]+"px"),8&e&&H(n,"max-width",t[3]+"px"),4&e&&H(n,"text-align",t[2]),785&e&&B(n,"show",t[9]),305&e&&B(n,"arrowless",!t[5])},i:t,o:t,d(t){t&&g(n),r&&r.d(),e[14](null)}}}function wo(t,e,n){let o,{content:r=""}=e,{align:i="left"}=e,{position:s="top"}=e,{maxWidth:a=200}=e,{style:l=null}=e,{theme:c=""}=e,{animation:u=""}=e,{arrow:h=!0}=e,{autoPosition:f=!1}=e,p=null,d=0,m=null,g=null,b=!1;return function(t){L().$$.on_mount.push(t)}(()=>{const t=u?200:0;if(null!==p&&(o&&!m&&(m=new r.component({target:p,props:r.props})),n(7,d=((t,e)=>{const n=t.getBoundingClientRect().width+2,o=window.getComputedStyle(t),r=n-(parseInt(o.getPropertyValue("padding-left"),10)+parseInt(o.getPropertyValue("padding-right"),10));return Math.round(Math.min(e,r||e))})(p,a)),l&&"object"==typeof l))for(let t in l){const e=t.replace(/-_$/g,"").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z])(?=[a-z])/g,"$1-$2").toLowerCase(),n=l[t];p.style.setProperty("--tooltip-"+e,n)}f&&!(t=>{const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)})(p)&&n(0,s=bo[s]),u&&n(8,g=u),setTimeout(()=>n(9,b=!0),t)}),C(()=>{m&&(m.$destroy(),m=null)}),t.$$set=t=>{"content"in t&&n(1,r=t.content),"align"in t&&n(2,i=t.align),"position"in t&&n(0,s=t.position),"maxWidth"in t&&n(3,a=t.maxWidth),"style"in t&&n(11,l=t.style),"theme"in t&&n(4,c=t.theme),"animation"in t&&n(12,u=t.animation),"arrow"in t&&n(5,h=t.arrow),"autoPosition"in t&&n(13,f=t.autoPosition)},t.$$.update=()=>{2&t.$$.dirty&&n(10,o="object"==typeof r)},[s,r,i,a,c,h,p,d,g,b,o,l,u,f,function(t){P[t?"unshift":"push"](()=>{p=t,n(6,p)})}]}class xo extends et{constructor(t){super(),tt(this,t,wo,Eo,s,{content:1,align:2,position:0,maxWidth:3,style:11,theme:4,animation:12,arrow:5,autoPosition:13},vo)}}const To=(t,e)=>{let n=null,o=t.getAttribute("title");o&&(t.removeAttribute("title"),e={content:o,...e});const r=()=>{n||(n=new xo({target:t,props:e}))},i=()=>{n&&(n.$destroy(),n=null)};return t.addEventListener("mouseenter",r),t.addEventListener("mouseleave",i),t.style.position="relative",{destroy(){t.removeEventListener("mouseenter",r),t.removeEventListener("mouseleave",i),o&&t.setAttribute("title",o)}}};function Ho(t){d(t,"svelte-1952qnl",".chat-widget.svelte-1952qnl.svelte-1952qnl.svelte-1952qnl{position:fixed;display:flex;flex-direction:column;justify-content:center;align-items:center;width:56px}.chat-widget.svelte-1952qnl>.button.svelte-1952qnl.svelte-1952qnl{all:unset;display:flex;flex-direction:column;position:fixed !important;padding:8px;cursor:pointer;justify-content:center;align-items:center;box-shadow:0 0 5px 3px rgba(0, 0, 0, 0.1);border-radius:360px;transition:0.25s all;-webkit-tap-highlight-color:transparent}.chat-widget.svelte-1952qnl>.button.svelte-1952qnl.svelte-1952qnl:focus{-webkit-filter:brightness(1.1);filter:brightness(1.1)}.chat-widget.svelte-1952qnl>.button.svelte-1952qnl.svelte-1952qnl:hover{-webkit-filter:brightness(1.1);filter:brightness(1.1)}.chat-widget.svelte-1952qnl>.button.svelte-1952qnl>.icon.svelte-1952qnl{width:32px;height:32px;background-size:cover;background-position:center;-webkit-filter:brightness(100);filter:brightness(100)}.chat-widget.svelte-1952qnl>.button.open-button.svelte-1952qnl.svelte-1952qnl{position:unset !important;z-index:1;padding:12px}.chat-widget.svelte-1952qnl>.button.open-button.svelte-1952qnl.svelte-1952qnl:focus{-webkit-filter:brightness(1);filter:brightness(1)}.chat-widget.svelte-1952qnl>.button.open-button.svelte-1952qnl.svelte-1952qnl:hover{-webkit-filter:brightness(1);filter:brightness(1)}.chat-widget.svelte-1952qnl>.button.open-button.svelte-1952qnl>.icon.svelte-1952qnl{background-image:url(https://cncrg.org/img/ChatIcon.png)}.chat-widget.svelte-1952qnl>.hint.svelte-1952qnl.svelte-1952qnl{position:absolute;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:150px;padding:8px 14px;border-radius:4px;text-align:center;font-family:Roboto, Montserrat, Arial, sans-serif}.chat-widget.svelte-1952qnl>.hint.svelte-1952qnl>.rect.svelte-1952qnl{position:absolute;top:50%;transform:rotate(45deg) translateY(-50%);width:16px;height:16px;background-color:inherit}")}function Bo(t,e,n){const o=t.slice();return o[20]=e[n],o[22]=n,o}function Ao(e,n){let o,s,a,l,c,u,h,f;function d(){return n[18](n[20])}return{key:e,first:null,c(){o=b("a"),s=b("div"),x(s,"class","icon svelte-1952qnl"),H(s,"background-image",`url(${n[20].icon})`),x(o,"class","button svelte-1952qnl"),x(o,"href",a=n[20].link),x(o,"tabindex",l=n[9]?null:"-1"),x(o,"target","_blank"),x(o,"title",c=n[20].title),H(o,"background-color",n[20].color),H(o,"transform",`translateY(-${n[9]?58*n[22]+62:0}px)`),this.first=o},m(e,r){var a;m(e,o,r),p(o,s),h||(f=[w(o,"click",d),(a=u=To.call(null,o,{position:n[4]?"right":"left",style:{offsetX:n[20].title?null:"-10000px"}}),a&&i(a.destroy)?a.destroy:t)],h=!0)},p(t,e){n=t,256&e&&H(s,"background-image",`url(${n[20].icon})`),256&e&&a!==(a=n[20].link)&&x(o,"href",a),512&e&&l!==(l=n[9]?null:"-1")&&x(o,"tabindex",l),256&e&&c!==(c=n[20].title)&&x(o,"title",c),u&&i(u.update)&&272&e&&u.update.call(null,{position:n[4]?"right":"left",style:{offsetX:n[20].title?null:"-10000px"}}),256&e&&H(o,"background-color",n[20].color),768&e&&H(o,"transform",`translateY(-${n[9]?58*n[22]+62:0}px)`)},d(t){t&&g(o),h=!1,r(f)}}}function _o(t){let e,n,o,r;return{c(){e=b("div"),n=new A(!1),o=y(),r=b("div"),n.a=o,x(r,"class","rect svelte-1952qnl"),H(r,"left",t[4]?"-12px":null),H(r,"right",t[4]?null:"0"),x(e,"class","hint svelte-1952qnl"),H(e,"color",t[6]),H(e,"background-color",t[7]),H(e,"left",t[4]?null:"-15px"),H(e,"right",t[4]?"-15px":null),H(e,"transform",t[4]?"translateX(100%)":"translateX(-100%)")},m(i,s){m(i,e,s),n.m(t[5],e),p(e,o),p(e,r)},p(t,o){32&o&&n.p(t[5]),16&o&&H(r,"left",t[4]?"-12px":null),16&o&&H(r,"right",t[4]?null:"0"),64&o&&H(e,"color",t[6]),128&o&&H(e,"background-color",t[7]),16&o&&H(e,"left",t[4]?null:"-15px"),16&o&&H(e,"right",t[4]?"-15px":null),16&o&&H(e,"transform",t[4]?"translateX(100%)":"translateX(-100%)")},d(t){t&&g(e)}}}function Io(e){let n,o,i,s,a,l,c=[],u=new Map,h=e[8];const f=t=>t[20].icon;for(let t=0;t<h.length;t+=1){let n=Bo(e,h,t),o=f(n);u.set(o,c[t]=Ao(o,n))}let d=!e[10]&&_o(e);return{c(){n=b("div");for(let t=0;t<c.length;t+=1)c[t].c();o=y(),i=b("button"),i.innerHTML='<div class="icon svelte-1952qnl"></div>',s=y(),d&&d.c(),x(i,"class","button open-button svelte-1952qnl"),H(i,"background-color",e[3]),x(n,"class","chat-widget svelte-1952qnl"),H(n,"z-index",e[2]),H(n,"left",e[4]?e[1]:null),H(n,"right",e[4]?null:e[1]),H(n,"bottom",e[0])},m(t,r){m(t,n,r);for(let t=0;t<c.length;t+=1)c[t]&&c[t].m(n,null);p(n,o),p(n,i),p(n,s),d&&d.m(n,null),a||(l=w(i,"click",e[19]),a=!0)},p(t,[e]){784&e&&(h=t[8],c=function(t,e,n,o,i,s,a,l,c,u,h,f){let p=t.length,d=s.length,m=p;const g={};for(;m--;)g[t[m].key]=m;const b=[],v=new Map,y=new Map,E=[];for(m=d;m--;){const t=f(i,s,m),r=n(t);let l=a.get(r);l?o&&E.push(()=>l.p(t,e)):(l=u(r,t),l.c()),v.set(r,b[m]=l),r in g&&y.set(r,Math.abs(m-g[r]))}const w=new Set,x=new Set;function T(t){X(t,1),t.m(l,h),a.set(t.key,t),h=t.first,d--}for(;p&&d;){const e=b[d-1],n=t[p-1],o=e.key,r=n.key;e===n?(h=e.first,p--,d--):v.has(r)?!a.has(o)||w.has(o)?T(e):x.has(r)?p--:y.get(o)>y.get(r)?(x.add(o),T(e)):(w.add(r),p--):(c(n,a),p--)}for(;p--;){const e=t[p];v.has(e.key)||c(e,a)}for(;d;)T(b[d-1]);return r(E),b}(c,e,f,1,t,h,u,n,K,Ao,o,Bo)),8&e&&H(i,"background-color",t[3]),t[10]?d&&(d.d(1),d=null):d?d.p(t,e):(d=_o(t),d.c(),d.m(n,null)),4&e&&H(n,"z-index",t[2]),18&e&&H(n,"left",t[4]?t[1]:null),18&e&&H(n,"right",t[4]?null:t[1]),1&e&&H(n,"bottom",t[0])},i:t,o:t,d(t){t&&g(n);for(let t=0;t<c.length;t+=1)c[t].d();d&&d.d(),a=!1,l()}}}function Lo(t,e,n){let o,{zIndex:r}
1=e,{color:i="#23c661"}=e,{left:s}=e,{bottom:a=90}=e,{horizontalOffset:l}=e,{tooltips:c={}}=e,{hintLabel:f="Связаться с нами"}=e,{hintTextColor:p}=e,{hintBackgroundColor:d}=e,{cncrg:m=!1}=e,{email:g=null}=e,{phone:b=null}=e,{telegram:v=null}=e,{whatsapp:y=null}=e,E=!1,w=[];const x=Vn("cncrgChatHintClicked",!1);u(t,x,t=>n(10,o=t));return t.$$set=t=>{"zIndex"in t&&n(2,r=t.zIndex),"color"in t&&n(3,i=t.color),"left"in t&&n(4,s=t.left),"bottom"in t&&n(0,a=t.bottom),"horizontalOffset"in t&&n(1,l=t.horizontalOffset),"tooltips"in t&&n(12,c=t.tooltips),"hintLabel"in t&&n(5,f=t.hintLabel),"hintTextColor"in t&&n(6,p=t.hintTextColor),"hintBackgroundColor"in t&&n(7,d=t.hintBackgroundColor),"cncrg"in t&&n(13,m=t.cncrg),"email"in t&&n(14,g=t.email),"phone"in t&&n(15,b=t.phone),"telegram"in t&&n(16,v=t.telegram),"whatsapp"in t&&n(17,y=t.whatsapp)},t.$$.update=()=>{1&t.$$.dirty&&n(0,a="number"==typeof a?a+"px":a),2&t.$$.dirty&&n(1,l="number"==typeof l?l+"px":l),4096&t.$$.dirty&&n(12,c={email:"Почта",phone:"Телефон",cncrg:"Написать онлайн",telegram:"Telegram",whatsapp:"WhatsApp",...c}),258304&t.$$.dirty&&(n(8,w=[]),g&&w.push({title:c.email,color:"#8d8d8d",icon:"https://cncrg.org/img/MailIcon.png",link:"mailto:"+g}),b&&w.push({title:c.phone,color:"#a3a3a3",icon:"https://cncrg.org/img/PhoneIcon.png",link:"tel:"+b}),m&&w.push({title:c.cncrg,color:"#436092",icon:"https://cncrg.org/favicon.ico",click(){window.cncrg.openChat()}}),v&&w.push({title:c.telegram,color:"#2aa2de",icon:"https://cncrg.org/img/TelegramIcon.png",link:"https://t.me/"+v}),y&&w.push({title:c.whatsapp||"WhatsApp",color:"#27ce60",icon:"https://cncrg.org/img/WhatsappIcon.png",link:"https://wa.me/"+y}))},[a,l,r,i,s,f,p,d,w,E,o,x,c,m,g,b,v,y,t=>{t.click&&t.click(),n(9,E=!1)},()=>{n(9,E=!E),h(x,o=!0,o)}]}class Co extends et{constructor(t){super(),tt(this,t,Lo,Io,s,{zIndex:2,color:3,left:4,bottom:0,horizontalOffset:1,tooltips:12,hintLabel:5,hintTextColor:6,hintBackgroun
1dColor:7,cncrg:13,email:14,phone:15,telegram:16,whatsapp:17},Ho)}}function So(t){d(t,"svelte-1l3vs6h",'.tooltip{--tooltip-background-color:rgba(0, 0, 0, 0.9);--tooltip-border-radius:4px;--tooltip-box-shadow:0 1px 20px rgba(0, 0, 0, 0.25);--tooltip-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,\n    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--tooltip-font-size:14px;--tooltip-font-weight:500;--tooltip-line-height:1.25rem;--tooltip-color:#fff;--tooltip-offset-x:12px;--tooltip-offset-y:12px;--tooltip-padding:12px;--tooltip-z-index:100;--tooltip-arrow-size:10px}')}function Oo(t){let e,n;return e=new Qn({props:{label:t[4],color:t[6],zIndex:t[0],left:t[12],horizontalOffset:t[2],bottom:t[1],hintTextColor:t[8],hintBackgroundColor:t[7],buttonOpensExternalSite:t[16],hotelId:t[3],serverUrl:t[13],buttonVisibleIn:t[11],icon:t[5]}}),e.$on("click",t[20]),{c(){Y(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,n){const o={};16&n&&(o.label=t[4]),64&n&&(o.color=t[6]),1&n&&(o.zIndex=t[0]),4096&n&&(o.left=t[12]),4&n&&(o.horizontalOffset=t[2]),2&n&&(o.bottom=t[1]),256&n&&(o.hintTextColor=t[8]),128&n&&(o.hintBackgroun
1dColor=t[7]),65536&n&&(o.buttonOpensExternalSite=t[16]),8&n&&(o.hotelId=t[3]),8192&n&&(o.serverUrl=t[13]),2048&n&&(o.buttonVisibleIn=t[11]),32&n&&(o.icon=t[5]),e.$set(o)},i(t){n||(X(e.$$.fragment,t),n=!0)},o(t){W(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Po(t){let n,o;const r=[{left:t[12],horizontalOffset:t[2],hintTextColor:t[8],hintBackgroundColor:t[7],...t[18]},{zIndex:t[0]-1}];let i={};for(let t=0;t<r.length;t+=1)i=e(i,r[t]);return n=new Co({props:i}),{c(){Y(n.$$.fragment)},m(t,e){Z(n,t,e),o=!0},p(t,e){const o=266629&e?function(t,e){const n={},o={},r={$$scope:1};let i=t.length;for(;i--;){const s=t[i],a=e[i];if(a){for(const t in s)t in a||(o[t]=1);for(const t in a)r[t]||(n[t]=a[t],r[t]=1);t[i]=a}else for(const t in s)r[t]=1}for(const t in o)t in n||(n[t]=void 0);return n}(r,[266628&e&&{left:t[12],horizontalOffset:t[2],hintTextColor:t[8],hintBackgroundColor:t[7],...t[18]},1&e&&{zIndex:t[0]-1}]):{};n.$set(o)},i(t){o||(X(n.$$.fragment,t),o=!0)},o(t){W(n.$$.fragment,t),o=!1},d(t){J(n,t)}}}function ko(t){let e,n,o,r,i,s,a=!t[10]&&Oo(t);function l(e){t[21](e)}let c={loadingLabel:t[9],zIndex:t[0],color:t[6],serverUrl:t[13],overrideLocale:t[14],locale:t[15],token:t[17],hotelId:t[3]};void 0!==t[19]&&(c.iframeActive=t[19]),n=new go({props:c}),P.push(()=>function(t,e,n){const o=t.$$.props[e];void 0!==o&&(t.$$.bound[o]=n,n(t.$$.ctx[o]))}(n,"iframeActive",l));let u=t[18]&&Po(t);return{c(){a&&a.c(),e=y(),Y(n.$$.fragment),r=y(),u&&u.c(),i=E()},m(t,o){a&&a.m(t,o),m(t,e,o),Z(n,t,o),m(t,r,o),u&&u.m(t,o),m(t,i,o),s=!0},p(t,[r]){t[10]?a&&(F(),W(a,1,1,()=>{a=null}),V()):a?(a.p(t,r),1024&r&&X(a,1)):(a=Oo(t),a.c(),X(a,1),a.m(e.parentNode,e));const s={};512&r&&(s.loadingLabel=t[9]),1&r&&(s.zIndex=t[0]),64&r&&(s.color=t[6]),8192&r&&(s.serverUrl=t[13]),16384&r&&(s.overrideLocale=t[14]),32768&r&&(s.locale=t[15]),131072&r&&(s.token=t[17]),8&r&&(s.hotelId=t[3]),!o&&524288&r&&(o=!0,s.iframeActive=t[19],function(t){M.push(t)}(()=>o=!1)),n.$set(s),t[18]?u?(u.p(t,r),262144&r&&X(u,1)):(u=Po(t),u.c(),X(u,1),u.m(i.parentNode,i)):u&&(F(),W(u,1,1,()=>{u=null}),V())},i(t){s||(X(a),X(n.$$.fragment,t),X(u),s=!0)},o(t){W(a),W(n.$$.fragment,t),W(u),s=!1},d(t){a&&a.d(t),t&&g(e),J(n,t),t&&g(r),u&&u.d(t),t&&g(i)}}}function Mo(t,e,n){let{hotelId:o}=e,{label:r="Оформить<br>доп. услуги"}=e,{icon:i="https://cncrg.org/img/icons/white-icon.png"}=e,{zIndex:s="100"}=e,{color:a="#D79966"}
1=e,{hintBackgroundColor:l="#4c4c4c"}=e,{hintTextColor:c="#ffffff"}=e,{loadingLabel:u}=e,{hideButton:h=!1}=e,{buttonVisibleIn:f=["desktop","mobile"]}=e,{left:p=!1}=e,{bottom:d=5}=e,{horizontalOffset:m=8}=e,{serverUrl:g="https://cncrg.org"}=e,{overrideLocale:b={}}=e,{locale:v}=e,{buttonOpensExternalSite:y=!1}=e,{token:E=null}=e,{chatWidget:w=null}=e;var x;x=v,Ve("en",Dn),Ve("ru",Gn),Ve("de",zn),Ve("es",jn),Ve("tr",qn),Ve("rs",Fn),sn({fallbackLocale:"en",initialLocale:x||("undefined"==typeof window?null:window.navigator.language||window.navigator.languages[0])});let T=!1;return t.$$set=t=>{"hotelId"in t&&n(3,o=t.hotelId),"label"in t&&n(4,r=t.label),"icon"in t&&n(5,i=t.icon),"zIndex"in t&&n(0,s=t.zIndex),"color"in t&&n(6,a=t.color),"hintBackgroundColor"in t&&n(7,l=t.hintBackgroundColor),"hintTextColor"in t&&n(8,c=t.hintTextColor),"loadingLabel"in t&&n(9,u=t.loadingLabel),"hideButton"in t&&n(10,h=t.hideButton),"buttonVisibleIn"in t&&n(11,f=t.buttonVisibleIn),"left"in t&&n(12,p=t.left),"bottom"in t&&n(1,d=t.bottom),"horizontalOffset"in t&&n(2,m=t.horizontalOffset),"serverUrl"in t&&n(13,g=t.serverUrl),"overrideLocale"in t&&n(14,b=t.overrideLocale),"locale"in t&&n(15,v=t.locale),"buttonOpensExternalSite"in t&&n(16,y=t.buttonOpensExternalSite),"token"in t&&n(17,E=t.token),"chatWidget"in t&&n(18,w=t.chatWidget)},t.$$.update=()=>{2&t.$$.dirty&&n(1,d="number"==typeof d?d+"px":d),4&t.$$.dirty&&n(2,m="number"==typeof m?m+"px":m),1&t.$$.dirty&&n(0,s=String(s))},[s,d,m,o,r,i,a,l,c,u,h,f,p,g,b,v,y,E,w,T,()=>n(19,T=!0),function(t){T=t,n(19,T)}]}export default class extends et{constructor(t){super(),tt(this,t,Mo,ko,s,{hotelId:3,label:4,icon:5,zIndex:0,color:6,hintBackgroun
1dColor:7,hintTextColor:8,loadingLabel:9,hideButton:10,buttonVisibleIn:11,left:12,bottom:1,horizontalOffset:2,serverUrl:13,overrideLocale:14,locale:15,buttonOpensExternalSite:16,token:17,chatWidget:18},So)}}

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